package com.ruoyi.wb.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 维保合同对象 wb_contract
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@ApiModel(value = "WbContract vo")
@Data
public class WbContractVo implements Serializable {

    @ApiModelProperty(value = "主键 id")
    private Long id;

    @ApiModelProperty(value = "合同编号")
    private String code;

    @ApiModelProperty(value = "合同名")
    private String name;

    @ApiModelProperty(value = "客户 id")
    private Long clientId;

    @ApiModelProperty(value = "客户名")
    private String clientName;

    @ApiModelProperty(value = "维保公司 id")
    private Long wbCompanyId;

    @ApiModelProperty(value = "维保公司名称")
    private String wbCompayName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "合同有效期")
    private Date contractValidity;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "项目维保有效期")
    private Date itemMaintenanceValidity;

    @ApiModelProperty(value = "合同文件")
    private String contractFile;

    @ApiModelProperty(value = "录入单位 id")
    private Long enterBusiness;

    @ApiModelProperty(value = "录入单位")
    private String businessName;

    @ApiModelProperty(value = "状态(1 有效，2 即将过期，3 过期，4 未生效，5 终止)")
    private Long status;

    @ApiModelProperty(value = "删除状态(1 存在，2 删除)")
    private Long delFlag;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "实际执行维保结束时间")
    private Date execEndTime;

    @ApiModelProperty(value = "计划 id")
    private Long planId;

    @ApiModelProperty(value = "维保公司名称")
    private String wbCompanyName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划开始时间")
    private Date planStartDate;
}